package com.ocom.webapi.service.impl;

import com.alibaba.fastjson.JSON;
import com.ocom.common.resp.Result;
import com.ocom.webapi.feign.HumanClientService;
import com.ocom.webapi.service.QuarantineMsgService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Slf4j
@Service
public class QuarantineMsgServiceImpl implements QuarantineMsgService {

    @Autowired
    private HumanClientService humanClientService;

    // 配置信息（QuarantineMsg/onShow）
    @Override
    public Result QuarantineMsgOnShow(Long comId) {
        log.info("服务消息新增请求参数{{}}",comId);
        return humanClientService.GetMsgYkmConfigList(comId);
    }

    @Override
    public Result QuarantineMsgModify(Map<String,Object> map) {
        log.info("服务消息新增请求参数{{}}",map);
        return humanClientService.AddMsgYkmConfig(map);
    }
}
